import json

from src import create_app
from waitress import serve

app = create_app()

if __name__ == '__main__':
    # 方式一 waitress
    # with open('waitress.json', 'r', encoding='utf-8') as f:
    #     config = json.load(f)
    # serve(app, **config)
    #
    # 方式二 flask
    app.run(host='0.0.0.0', port=5000)
